import Vue from 'vue'
import App from './App.vue'
//导入
import VueRouter from 'vue-router'

Vue.config.productionTip = false
//use
Vue.use(VueRouter);
//导入路由管理组件
import discovery from "./views/discovery.vue";
import playlists from "./views/playlists.vue";
import songs from "./views/songs.vue";
import mvs from "./views/mvs.vue";
import result from "./views/result.vue";
//创建路由
let router = new VueRouter({
  routes:[
    {path: "/",component: discovery},
    {path:"/discovery",component:discovery},
    {path:"/playlists",component:playlists},
    {path:"/songs",component:songs},
    {path:"/mvs",component:mvs},
    {path:"/result",component:result},
  ]
})

//使用element-ui
//导入
import ElementUI from 'element-ui'
//选择css
import 'element-ui/lib/theme-chalk/index.css'
import './assets/index.css'
//use
Vue.use(ElementUI)
new Vue({
  render: h => h(App),
  //挂载
  router
}).$mount('#app')
